package com.etoak.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CartDTO {

    @NotNull(message = "dishesId不能为空")
    private Integer dishesId;

    @NotNull(message = "dishesName不能为空")
    private String dishesName;

    @NotNull(message = "count不能为空")
    @Min(value = 1, message = "count不能小于1")
    private Integer count;
}
